package com.itheima.dao;

import com.itheima.pojo.*;
import com.sun.corba.se.spi.servicecontext.UEInfoServiceContext;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    //增
    void insertUser(User user);

    //删
    void deleteUser(int id);

    //改
    void updateUser(User user);

    //查
    List<User> findAll();

    User findById(int id);

    List<Integer> findUserName();

    //注册
    User register(User user);

    void deleteFavorite(@Param("a") int a, @Param("b") int b);

    List<Route> findFavoriteByUserName(String str);

    List<RouteCount> findRouteCount();

    List<FavoriteCount> findFavoriteCount();

    List<FavoriteRouteInfo> findFavoriteRouteInfo(int i);

    List<Seller> findSeller();

}
